<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue@next"></script>
</head>
<body>
<div id="app">
    <div>
        姓名：<input type="text" v-model="name">
    </div>
    <div>
        年龄：<input type="text" v-model="age">
    </div>
    <div>
        性别：<input type="text" v-model="sex">
    </div>

    <button type="button" @click="showInfo">点击提交</button>
</div>
</body>
<script>
    const app = Vue.createApp({
        data() {
            return {
                name:'wchi',
                age: 37,
                sex: 'man'
            }
        },
        methods:{
            showInfo(){
                console.log(this.name, this.age, this.sex);
            }
        }
    }).mount("#app")
</script>
</html>